package com.example.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("question_file")
public class QuestionFile {
    @TableId
    private Integer id;
    private Integer fileId;
    private Integer questionId;
    private String nodeId;

    public void copyQuestionFile(QuestionFile questionFile){
        this.fileId=questionFile.getFileId();
        this.questionId=questionFile.getQuestionId();
        this.nodeId=questionFile.getNodeId();
    }
}
